import request from '@/utils/request'

// 查询用户列表-分页
export function userslist(data) {
  return request({
    url: '/tSecUser/queryTSecUserList',
    method: 'post',
    data
  })
}

// 查询客户列表-分页
export function queryTBdCustomerList(data) {
  return request({
    url: '/tBdCustomer/queryTBdCustomerList',
    method: 'post',
    data
  })
}
// 删除客户
export function deleteCustomer(data) {
  return request({
    url: '/tBdCustomer/deleteCust',
    method: 'put',
    data
  })
}
// 用户部门分组
export function queryUsergroup(data) {
  return request({
    url: '/tSecUsergroup/queryUserGroup',
    method: 'post',
    data
  })
}

// 新增用户(新-子怡)
export function insertTSecUser(data) {
  return request({
    url: '/tSecUser/insertTSecUser',
    method: 'post',
    data
  })
}
// 用户详情（子怡）
export function queryUserDetails(data) {
  return request({
    url: '/tSecUser/queryUserDetails',
    method: 'post',
    data
  })
}
// 修改用户（子怡）
export function updateTSecUser(data) {
  return request({
    url: '/tSecUser/updateTSecUser',
    method: 'post',
    data
  })
}
// 角色列表
export function queryTJxRoleList(data) {
  return request({
    url: '/tJxRole/queryTJxRoleList',
    method: 'post',
    data
  })
}
// 重置用户密码
export function resetUserPassword(data) {
  return request({
    url: '/tSecUser/resetUserPassword',
    method: 'post',
    data
  })
}
// 禁用客户
export function disableCust(data) {
  return request({
    url: '/tBdCustomer/disableCust',
    method: 'put',
    data
  })
}
// 反禁用客户
export function undisableCust(data) {
  return request({
    url: '/tBdCustomer/undisableCust',
    method: 'put',
    data
  })
}
// 禁用用户
export function disable(data) {
  return request({
    url: '/tSecUser/userDisable',
    method: 'put',
    data
  })
}
// 反禁用用户
export function unDisable(data) {
  return request({
    url: '/tSecUser/userUnDisable',
    method: 'put',
    data
  })
}
// 提交
export function custSubmit(data) {
  return request({
    url: '/tBdCustomer/custSubmit',
    method: 'put',
    data
  })
}
// 反提交
export function custAuSubmit(data) {
  return request({
    url: '/tBdCustomer/custAuSubmit',
    method: 'put',
    data
  })
}
// 审核
export function custAudit(data) {
  return request({
    url: '/tBdCustomer/custAudit',
    method: 'put',
    data
  })
}
// 反审核
export function custUnAudit(data) {
  return request({
    url: '/tBdCustomer/custUnAudit',
    method: 'put',
    data
  })
}
// 员工类型列表
export function queryUserstafftypeList(data) {
  return request({
    url: '/tSxUserstafftype/queryUserstafftypeList',
    method: 'post',
    data
  })
}
// 新增员工类型
export function insertUserstafftype(data) {
  return request({
    url: '/tSxUserstafftype/insertUserstafftype',
    method: 'put',
    data
  })
}
// 修改员工类型
export function updateUserstafftype(data) {
  return request({
    url: '/tSxUserstafftype/updateUserstafftype',
    method: 'put',
    data
  })
}
// 反禁用员工类型
export function userstafftypeUnDisable(data) {
  return request({
    url: '/tSxUserstafftype/userstafftypeUnDisable',
    method: 'put',
    data
  })
}
// 禁用员工类型
export function userstafftypeDisable(data) {
  return request({
    url: '/tSxUserstafftype/userstafftypeDisable',
    method: 'put',
    data
  })
}
// 删除员工类型
export function deleteUserstafftype(data) {
  return request({
    url: '/tSxUserstafftype/deleteUserstafftype',
    method: 'delete',
    data
  })
}
// 工时登记列表
export function queryHoursRegistration(data) {
  return request({
    url: '/tWorkshop/queryHoursRegistration',
    method: 'post',
    data
  })
}
// 工时登记新增
export function insertHoursRegistration(data) {
  return request({
    url: '/tWorkshop/insertHoursRegistration',
    method: 'post',
    data
  })
}
// 工时登记修改
export function updateHoursRegistration(data) {
  return request({
    url: '/tWorkshop/updateHoursRegistration',
    method: 'post',
    data
  })
}
// 工时登记删除
export function dleteHoursRegistration(data) {
  return request({
    url: '/tWorkshop/dleteHoursRegistration',
    method: 'post',
    data
  })
}
// 工时登记重置
export function reSet(data) {
  return request({
    url: '/tWorkshop/reSet',
    method: 'post',
    data
  })
}
// 单据审批列表
export function queryTShApprovalList(data) {
  return request({
    url: '/tShApproval/queryTShApprovalList',
    method: 'post',
    data
  })
}
// 单据审批新增
export function insertTShApproval(data) {
  return request({
    url: '/tShApproval/insertTShApproval',
    method: 'post',
    data
  })
}
// 单据审批修改
export function updateTShApproval(data) {
  return request({
    url: '/tShApproval/updateTShApproval',
    method: 'put',
    data
  })
}
// 单据审批删除
export function deleteTShApproval(data) {
  return request({
    url: '/tShApproval/deleteTShApproval',
    method: 'delete',
    data
  })
}
// 单据审批详情
export function getTShApprovalById(params) {
  return request({
    url: '/tShApproval/getTShApprovalById',
    method: 'get',
    params
  })
}
// 单据审批 明细行 审批
export function updateTShApprovalEntry(data) {
  return request({
    url: '/tShApproval/updateTShApprovalEntry',
    method: 'put',
    data
  })
}
